package designpattern.adapter.order;

import designpattern.adapter.order.domain.ElemeOrder;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/20/16:01
 * @Description:
 */
public class Client {
    public static void main(String[] args) {
        ThirdOrderAdapter thirdOrderAdapter = new ThirdOrderAdapter();
        Map map = new HashMap();
        map.put("orderId","id");
        map.put("people","consignee");
        map.put("orderTime","createdAt");
        map.put("tel","phoneList");
        ElemeOrder elemeOrder = new ElemeOrder("2021", "123", "123456789", "123");
        String s = thirdOrderAdapter.elemeOrder(elemeOrder, map);
        System.out.println(s);
    }

}
